/**
 * Created by qizhang on 5/5/16.
 * 静态资源类型
 */
//按时间查询枚举
export const timeBaseOnEnum = {
  multiYear: 0,
  year: 1,
  month: 2,
  day: 3,
  week:5
}
export const advType = {
  'school': 0,
  'company': 1,
  'capital': 2
}
export const bannerType = {
  'recommend': 0,
  'category': 1,
  'quality': 2,
  'job': 3,
  'adv': 4
}
export const grideType = { //grade的root分类
  bachelor: 6,
  junior: 8,
  master: 9,
}
export const gradeType = { //grade分类
  benke:1,
  zhuanke:0,
  shuoshi:2,
}
export const RoleEnum = {
  1:{
    name:'超级管理员',
    value:1
  },
  2:{
    name:'普通管理员',
    value:2
  },
  3:{
    name:'普通用户',
    value:3
  },
  4:{
    name:'安装管理员',
    value:4
  },
  128:{
    name:'超级管理员',
    value:1
  },
};
//按时间查询
export const timeBaseOn = [
  {
    name: '按多年', value: 0
  },
  {
    name: '按年', value: 1
  },
  {
    name: '按月', value: 2
  },
  {
    name: '按日', value: 3
  },
];
export  const typeToString = {
  1:'年',
  2:'月',
  3:'日',
  4:'小时',
  5:'周'
}
export const timeTask = {
  everyday: 0,
  custom: 1,
  workday:2,
  weekend: 3

}
export const consumptionClassification = {
  subclass: 1,
  subitem: 2,
  subarea: 3
}

export const universityTypes = [
  '综合',
  '理工',
  '农业',
  '林业',
  '医药',
  '政法',
  '财经',
  '师范',
  '民族',
  '语言',
  '艺术',
  '军事',
  '体育',
  '旅游'
]
export function handleState (state) {
  if (state === 0){
    alert('成功')
  }
  if (state === -2){
    alert('请重新登录')
  }
}

export default {
  timeBaseOnEnum,
  timeBaseOn,
  typeToString,
  timeTask,
  consumptionClassification
}

